<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import bg from '@/assets/bg.png'
export default {
  created() {
    document.body.style = `background-image: url(${bg})`
    this.$router.push('/')
  }
}
</script>

<style lang="less">
html,
body {
  margin: 0;
}
* {
  box-sizing: border-box;
  user-select: none;
}
img {
  max-width: 100%;
  pointer-events: none;
  vertical-align: middle;
}
#app {
  max-width: 640px;
  height: calc(100vh);
  margin: auto;
  position: relative;
  overflow-x: hidden;
  overflow-y: scroll;
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  font-size: 17px;
}
.page {
  width: 100%;
  max-width: 640px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.container-tip {
    width: 70%;
     position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
</style>
